﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EpiPoker.NotifyService;
using EpiPoker.DataAccess;

namespace EpiPoker
{
    /// <summary>
    /// Notify the Service.
    /// </summary>
    public class NotifyServiceCallback : INotifyServiceCallback
    {
        public void Notify(object[] list_seat, object table)
        {
            if (((Table)table).getIdTable() == Table.Idtable)
                for (int i = 0; i < list_seat.Count(); i++)
                    Table.List_seat.Insert(i, (Seat)list_seat.ElementAt(i));
        }
    }
}